<link rel="stylesheet" href="__PUBLIC__/admin/css/bootstrap.css">
<div class="content"> 
                <div class="operation">
                    <div class="right-box">
                        <a href="{:U('efficiencyday',array('excel'=>1))}" class="exports"><button class="line">导出数据</button></a>
                    </div>
                    <form action="{:U('efficiencyday')}" method="post">  
                    <div class="pull-left">
                            <input class="Wdate" type="text" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="开始日期" name="startdate" value="{$startdate}">
                            <input class="Wdate" type="text" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="结束日期" name="enddate" value="{$enddate}">
                    </div>
                    <div class="right-box">
                        <input type="search" placeholder="搜索..." name="search" class="search" value="{$search}">
                        
                    </div>
                     <div class="right-box">
                        <!-- <select name="seo" class="seo" onchange="show_sub(this.options[this.options.selectedIndex].value)"> -->
                        <select name="seo" class="seo">
                            <option value="0">全部</option>
                            <option value="1" <if condition="$seo eq 1 "> selected = "selected" </if>>百度PC</option>
                            <option value="2" <if condition="$seo eq 2 "> selected = "selected" </if>>百度移动</option>
                            <option value="3" <if condition="$seo eq 3 "> selected = "selected" </if>>360PC</option>
                            <option value="4" <if condition="$seo eq 4 "> selected = "selected" </if>>360移动</option>
                            <option value="5" <if condition="$seo eq 5 "> selected = "selected" </if>>搜狗PC</option>
                            <option value="6" <if condition="$seo eq 6 "> selected = "selected" </if>>搜狗移动</option>
                        </select>
                        <!-- <span class="glyphicon glyphicon-search" id="sub"></span> -->
                        
                    
                    </div>
                    <!-- <button class="add"><span class="glyphicon glyphicon-plus"></span>添加</button> -->
                    <button type="submit" value="Submit">查询</button>
                     </form>   
                </div>
                <table class="table">
                    <tbody>
                    <tr>
                        <volist name="header" id="vo">
                            <th>{$vo}
                                <span>
                                    <a class="glyphicon glyphicon-triangle-top"></a>
                                    <a class="glyphicon glyphicon-triangle-bottom"></a>
                                </span>
                            </th>
                        </volist>
                        
                    </tr>
                        <volist name="list" id="vo">
                        <tr>
                            <volist name="vo" id="v">
                                <td>{$v}</td>
                            </volist>
                        </tr>
                        </volist>       
                </tbody>
            </table>
                <div class="page">
                    <span>共 {$count} 条</span>
                    <div class="paging">
                        {$page}
                    </div>
                    前往<input type="text" value="{$p}" name='page' onchange="mychange()">页
                </div>    
            </div>
          
<script type="text/javascript">
    $("#sub").click(function(){
        var search = $('.search').val();
        var seo = $('.seo').val();
        window.location.href = "/Agent/Efficiency/efficiencyday.html?search="+search+'&seo='+seo;
    });

    function show_sub(v){   
        var search = $('.search').val();
        window.location.href = "/Agent/Efficiency/efficiencyday.html?search="+search+'&seo='+v;
    }

     $("#slt").click(function(){
        var search = $('.search').val();
        var seo = $('.seo').val();
        window.location.href = "/Agent/Efficiency/efficiencyday.html?search="+search+'&seo='+seo;
    });

    function mychange(){
      var page =  $('input[name="page"]').val();
      window.location.href = "/index.php/Agent/Efficiency/efficiencyday/p/"+page;
    }
</script>